package dao.mysql.impl;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Configuration {

	// private static String url = "jdbc:mysql://162.105.146.245:3306/zhangyx?user=zhangyx&password=pkudlibzhangyx2011";
	private static String url = "jdbc:mysql://localhost:3306/zhangyx?user=root&password=root";
	
	static{
		try {
			Class.forName("com.mysql.jdbc.Driver");
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
	}

	public static Connection getConnection() throws SQLException {
		Connection conn = DriverManager.getConnection(url);
		return conn;
	}
}
